package com.gmzg.gmzgoffice.report;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.EditText;

import com.gmzg.gmzgoffice.R;

public class ReportDetailActivity extends AppCompatActivity {

    private EditText mTextFinishWork;
    private EditText mTextWorkSummary;
    private EditText mTextNextPlan;
    private EditText mTextHelp;
    private EditText mTextNotes;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_report_detail);
        initView();
        Intent intent = getIntent();
        String finishWork = intent.getStringExtra("finishWork");
        String workSummary = intent.getStringExtra("workSummary");
        String nextPlan = intent.getStringExtra("nextPlan");
        String needHelp = intent.getStringExtra("needHelp");
        String notes = intent.getStringExtra("notes");

        mTextFinishWork.setText(finishWork);
        mTextWorkSummary.setText(workSummary);
        mTextNextPlan.setText(nextPlan);
        mTextHelp.setText(needHelp);
        mTextNotes.setText(notes);
    }


    private void initView(){
        mTextFinishWork = ((EditText) findViewById(R.id.report_detail_edit_finish_work));
        mTextWorkSummary = ((EditText) findViewById(R.id.report_detail_edit_work_summary));
        mTextNextPlan = ((EditText) findViewById(R.id.report_detail_edit_next_plan));
        mTextHelp = ((EditText) findViewById(R.id.report_detail_edit_help));
        mTextNotes = ((EditText) findViewById(R.id.report_detail_edit_notes));

    }
}
